package com.haigirl.abstractdemo;

public class TestDriver {

	public static void main(String[] args) {
		test01();
	}

	/**
	 * 抽象类应用
	 */
	private static void test01() {
		// 抽象类不能够new创建实例对象
		// Shap shap0 = new Shap();

		// 多态
		Shap shap1 = new Circle(3);
		// 计算面积
		shap1.calculateShapeArea();
		// 输出信息
		shap1.printMe();

		System.out.println("============================");
		// 多态
		Shap shap2 = new Rectangle(2, 3);
		shap2.printMe();
	}

}
